from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By

driver=webdriver.Chrome()
driver.get('https://www.baidu.com/')
driver.find_element(By.LINK_TEXT,'新闻').click()
sleep(2)
driver.switch_to.window(driver.window_handles[-1])
sleep(5)
driver.find_element(By.PARTIAL_LINK_TEXT,'习语丨改革为人民').click()
sleep(5)
driver.quit()